#import "BlazePathwayController.h"
        
#import "BlazePathwayModel.h"
#import "BlazePathwayCell.h"
#import "Masonry.h"

@interface BlazePathwayController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *elevateUnfoldGrumpyCollectionView;
@property (nonatomic, strong) NSMutableArray *elevateLuminousArray;

@end

@implementation BlazePathwayController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self elevateOasisCactusSetuplayout];
	[self breezeAbandonMergefetchData];
}


//: 初始化页面UI
- (void)elevateOasisCactusSetuplayout {
	[self.view addSubview:self.elevateUnfoldGrumpyCollectionView];
	[self.elevateUnfoldGrumpyCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.edges.equalTo(self.view);
	}];
}


- (UICollectionView *)elevateUnfoldGrumpyCollectionView {
    if (!_elevateUnfoldGrumpyCollectionView) {
        UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
        flowLayout.minimumLineSpacing = 10;
        flowLayout.minimumInteritemSpacing = 10;
        flowLayout.itemSize = CGSizeMake(100, 100);
        flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
        
        _elevateUnfoldGrumpyCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:flowLayout];
        _elevateUnfoldGrumpyCollectionView.backgroundColor = UIColor.clearColor;
        _elevateUnfoldGrumpyCollectionView.delegate = self;
        _elevateUnfoldGrumpyCollectionView.dataSource = self;
        _elevateUnfoldGrumpyCollectionView.showsHorizontalScrollIndicator = NO;
        _elevateUnfoldGrumpyCollectionView.showsVerticalScrollIndicator = NO;
        [_elevateUnfoldGrumpyCollectionView registerClass:[BlazePathwayCell class] forCellWithReuseIdentifier:NSStringFromClass([BlazePathwayCell class])];
    }
    return _elevateUnfoldGrumpyCollectionView;
}

//: 获取数据模型
- (void)breezeAbandonMergefetchData {
	
}

//: 懒加载数据模型数组
- (NSMutableArray *)elevateLuminousArray {
	if (!_elevateLuminousArray) {
		_elevateLuminousArray = [NSMutableArray array];
	}
	return _elevateLuminousArray;
}

#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.elevateLuminousArray.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    BlazePathwayCell *swayCirculate = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([BlazePathwayCell class]) forIndexPath:indexPath];
    return swayCirculate;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
